package swnxb.小组合作;

/**
 * Created by V5470-I5 on 2016/6/19.
 */

import java.util.List;

import swnxb.小组合作.初设计.Vote;


public interface VoteDAO {
    public void addVote(Vote vote);
    public void updateVote(Vote vote);
    public void deleteVote(int voteID);
    public List<Vote> findAllVote(Page page);
    public List<Vote> findVoteByChannel(Page page,int channelID);
    public Vote findVoteById(int voteID);
    public Vote findVoteByName(String voteName);
    public int findAllCount();
    public int fintCountByChannel(int channelID);
}